import { defineStore } from 'pinia'
export const setGetAllData = defineStore('questionList', {
    state: () => ({
		submitData: {
			uid:'1',
			exam_id:'2',
			duration:'',
			exam_result_id:'',
			question_detail:[],
			status:3
		},
		time:{
			timer:null
		}
	}),
    actions: {
        /**
         * @name 清空列表
         * @param {*} key 要清空哪一列的数数据, one/two/three/...
         */
        clearAll(key) {
            this.all.data[key] = []
            this.all.show[key] = []
        }
    }
})